import { createSSRApp } from 'vue'
import App from './App.vue'
import { setupStore } from '@/store'
import uviewPlus from 'uview-plus'

export function createApp() {
  const app = createSSRApp(App)

  // 配置 Pinia
  setupStore(app)

  // 配置 uView Plus
  app.use(uviewPlus)

  return {
    app
  }
}
